/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Progrmas;

/**
 *
 * @author Luis
 */
public class convert3 {

    public static void main(String args[]){
//convierte un doble a diferentes tipos de datos
        Double d=0.0;
        Double d2;
        String s;
        Integer i;

        Short sh;

        Float f=d.floatValue();
        System.out.println("float:"+f);
        d2=f.doubleValue();
        System.out.println("double:"+d2);
        String s2=d2.toString();
        System.out.println("String:"+s2);
        i=Integer.parseInt(s2);
        System.out.println("integer"+i);
        sh=i.shortValue();
        System.out.println("short"+sh);
        


    }
}
